package cn.tedu;

//@Component
public class HuaweiPhone implements Phone {

    private String name;

    public HuaweiPhone(String name) {
        this.name = name;
        System.out.println("HuaweiPhone构造方法被调用了");
    }
    @Override
    public String getName() {
        return name + "的华为手机";
    }

    @Override
    public String toString() {
        return "HuaweiPhone{" +
                "name='" + name + '\'' +
                '}';
    }
}
